package com.bobo.common.response;

/**
 * @Description: 响应码
 * @Auther: Swain
 * @Date: 2021/1/8 15:15
 * @Version 1.0.0
 */
public enum ServerCode {

    SUCCESS(1000, "操作成功"),
    SYSTEM_ERROR(1001, "系统紧急修复，请稍后重试"),
    PARAMETER_ERROR(1002, "请求参数错误"),
    RESPONSE_ERROR(1003, "响应数据错误"),
    NO_DATA(1004, "查无数据");

    private int code;

    private String desc;

    ServerCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
